package org.gwt.pluginframework.plugin.api;

import com.google.gwt.user.client.ui.Widget;

/**
 * Interface for wizard or dialog page.
 * 
 * @author mszymanski
 */
public interface IPage {
	/**
	 * Validates page and returns information if page is consistent.
	 * 
	 * @return
	 */
	boolean validate();
	
	/**
	 * Retrieves widget which will be inserted as main content panel.
	 * 
	 * @return
	 */
	Widget getWiget();
}
